package com.ytkj.tradeserver.dao;

import com.ytkj.tradeserver.entity.Articleinfo;
import com.ytkj.tradeserver.entity.StoreArticlesVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/4/13.
 */
@Repository
public interface IArticleinfoDao {

    public List<Articleinfo> queryAllArticles(Articleinfo info);

    public int addArticle(Articleinfo info);

    public Articleinfo querySingleArticle(Articleinfo info);

    public int addViewsNum(@Param("id")int id);

    public boolean queryIsStored(StoreArticlesVO store);

    public int storeLoveArticle(StoreArticlesVO store);
}
